package com.yunduansing.demo.model.depart;

import java.util.List;

import com.yunduansing.demo.entity.DepartEntity;

import lombok.Data;

@Data
public class DepartTreeModel extends DepartEntity{
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private List<DepartTreeModel> children;
    private String manager;

    public DepartTreeModel(DepartEntity entity,List<DepartTreeModel> children,String manager){
        this.setId(entity.getId());
        this.setCode(entity.getCode());
        this.setName(entity.getName());
        this.setStatus(entity.getStatus());
        this.setSeq(entity.getSeq());
        this.setPid(entity.getPid());
        this.children=children;
        this.manager=manager;
    }
}